package com.lxh.abstractfactory;

/**
 * 红色矩形 具体工厂类
 * Create by lxh on 2020/2/8
 */
public class RedRectangleFactory extends AbstractFactory {
    @Override
    public Shape createShape() {
        return new Rectangle();
    }

    @Override
    public Color createColor() {
        return new Red();
    }
}
